package trouger.dmt;

import org.apache.hadoop.mapred.JobConf;

/**
 * This Runner class is used to do single-table aggregation operations.
 * <br>You must call addSourceTable once and only once.
 * <br>Call {@link JoinableRunnerBase#setResultFieldsEx} or {@link JoinableRunnerBase#setAggregationOperator} to specify aggregation operator(s).
 * <br>If you call {@link BaseMapredRunner#addKeyGroup}, the parameter must contain one and only one field in the source table.
 * If you never call addKeyGroup, the aggregation operation will be performed on a single set containing all records from the source table.
 */
public class SelfAggregationRunner
extends JoinableRunnerBase{
	@Override
	protected void configureJob(JobConf conf){
		super.configureJob(conf);
		conf.set(JoinableReducer.JOINTABLE_OR_SELFAGGREGATION_PARAM_NAME, "1");
	}
}
